package xtu.www.inject.provide;

import android.content.Context;
import android.view.View;

/**
 * Created by huilin on 2017/7/10.
 */

public class ViewProvide implements Provider {

    @Override
    public Context getContext(Object o) {
        return ((View) o).getContext();
    }

    @Override
    public View findView(Object o, int id) {
        return ((View) o).findViewById(id);
    }
}
